package cn.com.cifi.mars.constant;

/**
 * 分期状态
 * @author: jyx
 * @date: 2020/7/21 14:13
 */
public enum StageStatusEnum {

    CTIVE("ACTIVE","启用"),
    INACTIVE("INACTIVE","禁用"),
    ;

    private String key;
    private String value;


    StageStatusEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public static String getValueByKey(String key){
        for(LogEventEnum versionTypeEunm:LogEventEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }
}
